<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>List</title>
</head>
<body>
<h1>this is user list page</h1>
<table border="1" cellpadding="0" cellspacing="0">
    <tr>
        <td>username</td>
        <td>password</td>
        <td>action</td>
    </tr>
    {% for user in userlist %}
        <tr>
            <td>{{ user[0] }}</td>
            <td>{{ user[1] }}</td>
            <td>
                <a href="/update?username={{ user[0] }}">update</a>
                <a href="/del?username={{ user[0] }}">delete</a>
            </td>
        </tr>
    {% endfor %}
</table>
</body>
</html>